package com.xia.demo.demoserverb.contorller;

import com.xia.demo.demoservera.feign.IServiceAFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiafb
 * @date Create in 2021/7/17
 * description 测试controller
 */
@RestController
@RequestMapping("/test")
public class TestContorller {

    @Autowired
    private IServiceAFeign serviceAFeign;

    @GetMapping("/get/{name}")
    public String invokerServiceA(@PathVariable("name") String name){
        return serviceAFeign.doSomeThing(name);
    }
}
